﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCQuyetDinh.ascx.cs"
    Inherits="DemoExtNet.UserControls.UCQuyetDinh" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<ext:XScript ID="XScipt1" runat="server">
    <script type="text/javascript">
        
    </script>
</ext:XScript>
<ext:Panel ID="Panel1" runat="server" Frame="false" Width="420" Border="false">
    <Items>
        <ext:Hidden ID="hdFileValue" runat="server" />
        <ext:CompositeField runat="server" Hidden="true">
            <Items>
                <ext:Label ID="label1" runat="server" Text="Loại quyết định:" Width="150" />
                <ext:ComboBox ID="cbbLoaiQuyetDinh" runat="server" LabelWidth="150" Width="200" DisplayField="Name"
                   ReadOnly="true" ValueField="ID">
                    <Store>
                        <ext:Store ID="storeQuyetDinh" runat="server">
                            <Reader>
                                <ext:JsonReader IDProperty="ID">
                                    <Fields>
                                        <ext:RecordField Name="ID" />
                                        <ext:RecordField Name="Name" />
                                    </Fields>
                                </ext:JsonReader>
                            </Reader>
                        </ext:Store>
                    </Store>
                </ext:ComboBox>
            </Items>
        </ext:CompositeField>
        <ext:CompositeField ID="CompositeField1" runat="server">
            <Items>
                <ext:Label ID="label2" runat="server" Text="Mã số:" Width="150" />
                <ext:TextField ID="txtMaQD" runat="server" LabelWidth="150" Width="200" />
            </Items>
        </ext:CompositeField>
        <ext:CompositeField ID="CompositeField2" runat="server">
            <Items>
                <ext:Label ID="label3" runat="server" Text="Ngày quyết định:" Width="150" />
                <ext:DateField ID="dtNgayQD" runat="server" Width="200" LabelWidth="150">
                </ext:DateField>
            </Items>
        </ext:CompositeField>
        <ext:CompositeField runat="server">
            <Items>
                <ext:Label ID="label" runat="server" Text="Nội dung:" Width="150" />
                <ext:FileUploadField ID="flPath" runat="server" Width="200" Icon="Attach" ButtonText="Chọn file">
                    <Listeners>
                        <FileSelected Handler="#{DirectMethods}.CheckFile(#{flPath}.getValue());" />
                    </Listeners>
                </ext:FileUploadField>
                <ext:Button ID="btnPreview" runat="server" Text="Mở" Icon="Folder">
                    <Listeners>
                        <Click Handler="#{DirectMethods}.CallPreview();" />
                    </Listeners>
                </ext:Button>
            </Items>
        </ext:CompositeField>
        <ext:CompositeField ID="CompositeField3" runat="server">
            <Items>
                <ext:Label ID="label4" runat="server" Text="Ghi chú:" Width="150" />
                <ext:TextArea ID="txtGhiChu" LabelWidth="150" runat="server" Width="200" Height="100" />
            </Items>
        </ext:CompositeField>
    </Items>
    <Content>
    </Content>
</ext:Panel>
